package Entity;

import java.util.Date;

/**
 * this is the order list node. it will be used for the orders list of any customer.
 * @author Or Marx
 *
 */
public class OrderListNode {
	private Date begin;
	//private Date end; (DONT NEED because each node is for exactly 15 minutes)
	private int taken_spots;
	
	/**
	 * is the constructor. it will set the begin date of the order and set the nuber of taken spots to zero.
	 * @param begin
	 */
	public OrderListNode(Date begin)
	{
		this.begin=(Date) begin.clone();
		taken_spots=0;
	}
	public Date getBegin() {
		return begin;
	}
	public void setBegin(Date begin) {
		this.begin = begin;
	}
	
	public int getTaken_spots() {
		return taken_spots;
	}
	public void setTaken_spots(int taken_spots) {
		this.taken_spots = taken_spots;
	}

}
